package ModelLayer;


/**
 * Write a description of class person here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class Person
{
    // instance variables 
    private int id;
    private String name;
    private String address;
    private String postalCode;
    private String city;
    private String phoneNumber;

    /**
     * Constructor for objects of class person
     */
    public Person(int id, String name, String address, String postalCode, String city, String phoneNumber)
    {

        this.id = id;
        this.name = name;
        this.address = address;
        this.postalCode = postalCode;
        this.city = city;
        this.phoneNumber = phoneNumber;
    }

    
    public void setName(String name) 
    {
		this.name = name;
	}
	
	public String getName() 
	{
		return name;
	}
	
	public void setId(int id) 
	{
		this.id = id;
	}
	
	public int getId() 
	{
		return id;
	}
	
	public void setAddress(String address) 
	{
		this.address = address;
	}
	
	public String getAddress() 
	{
		return address;
	}
	
	public void setPostalCode(String postalCode) 
	{
		this.postalCode = postalCode;
	}
	
	public String getpostalCode() 
	{
		return postalCode;
	}
	
	public void setCity(String city) 
	{
		this.city = city;
	}
	
	public String getcity() 
	{
		return city;
	}
	
	public void setPhoneNumber(String phoneNumber) 
	{
		this.phoneNumber = phoneNumber;
	}
	
	public String getPhoneNumber() 
	{
		return phoneNumber;
	}
	
    public void printPerson()
    {
        System.out.println("ID: " + id);
        System.out.println("Name: " + name);
        System.out.println("Address: " + address);
        System.out.println("Postal code: " + postalCode);
        System.out.println("City: " + city);
        System.out.println("Phone number: " + phoneNumber);
    }
     
}
